<%@page import="java.util.List"%>
<%@page import="com.oea.hibernate.entities.Student"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">

    <jsp:include page="head.jsp"></jsp:include>

        <body style="">
            <!-- topbar starts -->
        <jsp:include page="header.jsp"></jsp:include>
            <!-- topbar ends -->
            <div class="ch-container">
                <div class="row">

                    <!-- left menu starts -->
                <jsp:include page="menu.jsp"></jsp:include>
                    <!-- left menu ends -->





                    <!--jaimin start-->
                <jsp:include page="faculty-assign-subjects-body.jsp"></jsp:include>

                    <!--jaimin end-->


                <jsp:include page="footer.jsp"></jsp:include>
                <!--/span-->
                <script>
                     // window.onload = function() {
                    $(".delete_button").click(function() {

                        var delete_id = $(this).attr('id');
                        var id = delete_id.substring(7); // delete_3
                        $.ajax({
                            type: "POST",
                            url: "FacultySubjectDeleteAction.do",
                            data: "id=" + id,
                            success: function(data) {
                                console.log(data);
                                data = JSON.parse(data);

                                if (data.done === '1') {
                                    $("#tr_" + id).remove();
                                }
                                else {
                                    alert("Data cannot be deleted due to some reason !");
                                }
                            }
                        });
                    });

                 //}   

                </script>


                <div id="cboxOverlay" style="display: none;"></div><div id="colorbox" class="" role="dialog" tabindex="-1" style="display: none;"><div id="cboxWrapper"><div><div id="cboxTopLeft" style="float: left;"></div><div id="cboxTopCenter" style="float: left;"></div><div id="cboxTopRight" style="float: left;"></div></div><div style="clear: left;"><div id="cboxMiddleLeft" style="float: left;"></div><div id="cboxContent" style="float: left;"><div id="cboxTitle" style="float: left;"></div><div id="cboxCurrent" style="float: left;"></div><button type="button" id="cboxPrevious"></button><button type="button" id="cboxNext"></button><button id="cboxSlideshow"></button><div id="cboxLoadingOverlay" style="float: left;"></div><div id="cboxLoadingGraphic" style="float: left;"></div></div><div id="cboxMiddleRight" style="float: left;"></div></div><div style="clear: left;"><div id="cboxBottomLeft" style="float: left;"></div><div id="cboxBottomCenter" style="float: left;"></div><div id="cboxBottomRight" style="float: left;"></div></div></div><div style="position: absolute; width: 9999px; visibility: hidden; display: none; max-width: none;"></div></div></body></html>